.class public Lrexsee/core/widget/ButtonBar;
.super Lrexsee/core/widget/Div;
.source "ButtonBar.java"


# instance fields
.field public final mContainer:Landroid/widget/LinearLayout;

.field private final mScrollerX:Lrexsee/core/widget/HScrollView;

.field private final mScrollerY:Landroid/widget/ScrollView;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lrexsee/core/menu/PopMenu;)V
    .locals 1
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "popMenu"    # Lrexsee/core/menu/PopMenu;

    .prologue
    .line 21
    const-string v0, ""

    invoke-direct {p0, p1, p2, v0}, Lrexsee/core/widget/ButtonBar;-><init>(Landroid/content/Context;Lrexsee/core/menu/PopMenu;Ljava/lang/String;)V

    .line 22
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lrexsee/core/menu/PopMenu;Ljava/lang/String;)V
    .locals 8
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "popMenu"    # Lrexsee/core/menu/PopMenu;
    .param p3, "style"    # Ljava/lang/String;

    .prologue
    const/4 v7, 0x1

    const/4 v6, -0x1

    const-string v4, "visible"

    .line 24
    invoke-direct {p0, p1}, Lrexsee/core/widget/Div;-><init>(Landroid/content/Context;)V

    .line 26
    iget-object v4, p2, Lrexsee/core/menu/PopMenu;->id:Ljava/lang/String;

    invoke-virtual {p0, v4}, Lrexsee/core/widget/ButtonBar;->setDivId(Ljava/lang/String;)V

    .line 27
    iget-object v4, p2, Lrexsee/core/menu/PopMenu;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v4}, Lrexsee/core/style/StyleSheet;->clone()Lrexsee/core/style/StyleSheet;

    move-result-object v4

    invoke-virtual {v4, p3}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    move-result-object v4

    iput-object v4, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    .line 29
    new-instance v4, Landroid/widget/LinearLayout;

    invoke-direct {v4, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lrexsee/core/widget/ButtonBar;->mContainer:Landroid/widget/LinearLayout;

    .line 30
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mContainer:Landroid/widget/LinearLayout;

    iget-object v5, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getGravity()I

    move-result v5

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 31
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->orientation:Ljava/lang/String;

    const-string v5, "x"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_0

    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->orientation:Ljava/lang/String;

    const-string v5, "horizontal"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 32
    :cond_0
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mContainer:Landroid/widget/LinearLayout;

    const/4 v5, 0x0

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 36
    :goto_0
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_1
    iget-object v4, p2, Lrexsee/core/menu/PopMenu;->items:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lt v2, v4, :cond_2

    .line 50
    new-instance v4, Lrexsee/core/widget/ButtonBar$2;

    invoke-direct {v4, p0, p1}, Lrexsee/core/widget/ButtonBar$2;-><init>(Lrexsee/core/widget/ButtonBar;Landroid/content/Context;)V

    iput-object v4, p0, Lrexsee/core/widget/ButtonBar;->mScrollerX:Lrexsee/core/widget/HScrollView;

    .line 60
    new-instance v4, Lrexsee/core/widget/ButtonBar$3;

    invoke-direct {v4, p0, p1}, Lrexsee/core/widget/ButtonBar$3;-><init>(Lrexsee/core/widget/ButtonBar;Landroid/content/Context;)V

    iput-object v4, p0, Lrexsee/core/widget/ButtonBar;->mScrollerY:Landroid/widget/ScrollView;

    .line 73
    :try_start_0
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->overflow_x:Ljava/lang/String;

    const-string v5, "visible"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_3

    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->overflow_y:Ljava/lang/String;

    const-string v5, "visible"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 74
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mScrollerX:Lrexsee/core/widget/HScrollView;

    iget-object v5, p0, Lrexsee/core/widget/ButtonBar;->mContainer:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v5}, Lrexsee/core/widget/HScrollView;->addView(Landroid/view/View;)V

    .line 75
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mScrollerY:Landroid/widget/ScrollView;

    iget-object v5, p0, Lrexsee/core/widget/ButtonBar;->mScrollerX:Lrexsee/core/widget/HScrollView;

    invoke-virtual {v4, v5}, Landroid/widget/ScrollView;->addView(Landroid/view/View;)V

    .line 76
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mScrollerY:Landroid/widget/ScrollView;

    invoke-virtual {p0, v4}, Lrexsee/core/widget/ButtonBar;->addDivChild(Landroid/view/View;)V

    .line 87
    :goto_2
    invoke-virtual {p0}, Lrexsee/core/widget/ButtonBar;->setBarStyle()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 93
    :goto_3
    return-void

    .line 34
    .end local v2    # "i":I
    :cond_1
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mContainer:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->setOrientation(I)V

    goto :goto_0

    .line 37
    .restart local v2    # "i":I
    :cond_2
    iget-object v4, p2, Lrexsee/core/menu/PopMenu;->items:Ljava/util/ArrayList;

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lrexsee/core/menu/PopMenuItem;

    .line 38
    .local v3, "item":Lrexsee/core/menu/PopMenuItem;
    new-instance v0, Landroid/widget/Button;

    invoke-direct {v0, p1}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    .line 39
    .local v0, "button":Landroid/widget/Button;
    iget-object v4, v3, Lrexsee/core/menu/PopMenuItem;->styleNormal:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->label:Ljava/lang/String;

    invoke-static {v4}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v4

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 40
    new-instance v4, Lrexsee/core/widget/ButtonBar$1;

    invoke-direct {v4, p0, v3}, Lrexsee/core/widget/ButtonBar$1;-><init>(Lrexsee/core/widget/ButtonBar;Lrexsee/core/menu/PopMenuItem;)V

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 46
    new-instance v4, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v5, 0x3f800000    # 1.0f

    invoke-direct {v4, v6, v6, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 47
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mContainer:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 36
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .line 77
    .end local v0    # "button":Landroid/widget/Button;
    .end local v3    # "item":Lrexsee/core/menu/PopMenuItem;
    :cond_3
    :try_start_1
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->overflow_x:Ljava/lang/String;

    const-string v5, "visible"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_4

    .line 78
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mScrollerX:Lrexsee/core/widget/HScrollView;

    iget-object v5, p0, Lrexsee/core/widget/ButtonBar;->mContainer:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v5}, Lrexsee/core/widget/HScrollView;->addView(Landroid/view/View;)V

    .line 79
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mScrollerX:Lrexsee/core/widget/HScrollView;

    invoke-virtual {p0, v4}, Lrexsee/core/widget/ButtonBar;->addDivChild(Landroid/view/View;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_2

    .line 89
    :catch_0
    move-exception v4

    move-object v1, v4

    .line 90
    .local v1, "e":Ljava/lang/Exception;
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "TabBar:"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {p1, v4, v7}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/Toast;->show()V

    goto :goto_3

    .line 80
    .end local v1    # "e":Ljava/lang/Exception;
    :cond_4
    :try_start_2
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->overflow_y:Ljava/lang/String;

    const-string v5, "visible"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 81
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mScrollerY:Landroid/widget/ScrollView;

    iget-object v5, p0, Lrexsee/core/widget/ButtonBar;->mContainer:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v5}, Landroid/widget/ScrollView;->addView(Landroid/view/View;)V

    .line 82
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mScrollerY:Landroid/widget/ScrollView;

    invoke-virtual {p0, v4}, Lrexsee/core/widget/ButtonBar;->addDivChild(Landroid/view/View;)V

    goto/16 :goto_2

    .line 84
    :cond_5
    iget-object v4, p0, Lrexsee/core/widget/ButtonBar;->mContainer:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v4}, Lrexsee/core/widget/ButtonBar;->addDivChild(Landroid/view/View;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto/16 :goto_2
.end method


# virtual methods
.method public setBarStyle()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    const/4 v5, 0x1

    const-string v1, "hidden"

    const-string v1, ""

    const-string v1, "visible"

    .line 101
    :try_start_0
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v1, v1, Lrexsee/core/style/StyleSheet;->overflow_x:Ljava/lang/String;

    const-string v2, "visible"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 102
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerX:Lrexsee/core/widget/HScrollView;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lrexsee/core/widget/HScrollView;->setHorizontalFadingEdgeEnabled(Z)V

    .line 103
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerX:Lrexsee/core/widget/HScrollView;

    iget-object v2, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v2, v2, Lrexsee/core/style/StyleSheet;->fading_edge_x_length:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v2

    const-string v3, "px"

    const-string v4, ""

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v1, v2}, Lrexsee/core/widget/HScrollView;->setFadingEdgeLength(I)V

    .line 104
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v1, v1, Lrexsee/core/style/StyleSheet;->scrollbar_x:Ljava/lang/String;

    const-string v2, "hidden"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 105
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerX:Lrexsee/core/widget/HScrollView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lrexsee/core/widget/HScrollView;->setHorizontalScrollBarEnabled(Z)V

    .line 112
    :cond_0
    :goto_0
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v1, v1, Lrexsee/core/style/StyleSheet;->overflow_y:Ljava/lang/String;

    const-string v2, "visible"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 113
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerY:Landroid/widget/ScrollView;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/widget/ScrollView;->setVerticalFadingEdgeEnabled(Z)V

    .line 114
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerY:Landroid/widget/ScrollView;

    iget-object v2, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v2, v2, Lrexsee/core/style/StyleSheet;->fading_edge_y_length:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v2

    const-string v3, "px"

    const-string v4, ""

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/ScrollView;->setFadingEdgeLength(I)V

    .line 115
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v1, v1, Lrexsee/core/style/StyleSheet;->scrollbar_y:Ljava/lang/String;

    const-string v2, "hidden"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 116
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerY:Landroid/widget/ScrollView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ScrollView;->setVerticalScrollBarEnabled(Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 126
    :cond_1
    :goto_1
    invoke-virtual {p0}, Lrexsee/core/widget/ButtonBar;->setDivStyle()V

    .line 127
    return-void

    .line 107
    :cond_2
    :try_start_1
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerX:Lrexsee/core/widget/HScrollView;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lrexsee/core/widget/HScrollView;->setHorizontalScrollBarEnabled(Z)V

    .line 108
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerX:Lrexsee/core/widget/HScrollView;

    iget-object v2, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v2}, Lrexsee/core/style/StyleSheet;->getScrollbarXStyle()I

    move-result v2

    invoke-virtual {v1, v2}, Lrexsee/core/widget/HScrollView;->setScrollBarStyle(I)V

    .line 109
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerX:Lrexsee/core/widget/HScrollView;

    iget-object v2, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v2, v2, Lrexsee/core/style/StyleSheet;->scrollbar_x:Ljava/lang/String;

    const-string v3, "visible"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    move v2, v6

    :goto_2
    invoke-virtual {v1, v2}, Lrexsee/core/widget/HScrollView;->setScrollbarFadingEnabled(Z)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    .line 123
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 124
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mContext:Landroid/content/Context;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "TabBar:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto :goto_1

    .end local v0    # "e":Ljava/lang/Exception;
    :cond_3
    move v2, v5

    .line 109
    goto :goto_2

    .line 118
    :cond_4
    :try_start_2
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerY:Landroid/widget/ScrollView;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/widget/ScrollView;->setVerticalScrollBarEnabled(Z)V

    .line 119
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerY:Landroid/widget/ScrollView;

    iget-object v2, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v2}, Lrexsee/core/style/StyleSheet;->getScrollbarYStyle()I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/ScrollView;->setScrollBarStyle(I)V

    .line 120
    iget-object v1, p0, Lrexsee/core/widget/ButtonBar;->mScrollerY:Landroid/widget/ScrollView;

    iget-object v2, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v2, v2, Lrexsee/core/style/StyleSheet;->scrollbar_y:Ljava/lang/String;

    const-string v3, "visible"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_5

    move v2, v6

    :goto_3
    invoke-virtual {v1, v2}, Landroid/widget/ScrollView;->setScrollbarFadingEnabled(Z)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_1

    :cond_5
    move v2, v5

    goto :goto_3
.end method

.method public setBarStyle(Ljava/lang/String;)V
    .locals 1
    .param p1, "style"    # Ljava/lang/String;

    .prologue
    .line 96
    iget-object v0, p0, Lrexsee/core/widget/ButtonBar;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v0, p1}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    .line 97
    invoke-virtual {p0}, Lrexsee/core/widget/ButtonBar;->setBarStyle()V

    .line 98
    return-void
.end method
